
export function configForm () {
  return [
    {
      fieldName: "创建时间从",
      field: "startDate",
      aliasField: 'startDate',
      value: "",
      type: "date",
      placeholder: "请选择"
    },
    {
      fieldName: "创建时间至",
      field: "endDate",
      aliasField: 'endDate',
      value: "",
      type: "date",
      placeholder: "请选择"
    },
  ]
}

export function generateColumns() {
  return [
    {
      title: '停止调度时间从',
      key: 'dispatchStartTime',
      minWidth: 180
    },
    {
      title: '停止调度时间至',
      key: 'dispatchEndTime',
      minWidth: 180
    },
    {
      title: '执行状态',
      key: 'dataState',
      minWidth: 130,
      render: (h, { row }) => {
        return this.dataStateHandle(h, row)
      }
    },
    {
      title: '创建时间',
      key: 'createTime',
      minWidth: 180
    },
    {
      title: "创建人账号",
      key: "createUserName",
      minWidth: 120
    }
  ]
}
